import 'package:kmxy_base_example/page/pdf/pdf_page_state.dart';

import 'package:kmxy_base/base/base_package.dart';

class PdfPageView extends PdfPageState {
  @override
  Widget setPageContent(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        centerTitle: true,
        title: const Text(
          'pdf案例',
          style: TextStyle(
            color: Colors.white,
            fontWeight: FontWeight.w700,
          ),
        ),
      ),
      body: SafeArea(
          child: SfPdfViewer.network(
        'https://jxxy.oss-cn-guangzhou.aliyuncs.com/upload/20220803/9ed7daa7e35785ea1af2f168071c221d.pdf',
        // 'http://www.cztouch.com/upfiles/soft/testpdf.pdf',
        // 'https://cdn.syncfusion.com/content/PDFViewer/flutter-succinctly.pdf',
      )),
    );
  }
}
